package com.cq.api;

import com.cq.back.DissFallback;
import com.cq.pojo.TbDistributor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "diss-service", fallbackFactory = DissFallback.class)
public interface DissApi {

    @GetMapping("/diss/findDissByUid")
    public List<TbDistributor> findDissByUid(@RequestParam Integer uid);
}
